package com.freecloud.spring.formework.beans;

/**
 * @Author: maomao
 * @Date: 2019-12-11 09:14
 */
public class FCBeanWrapper {

    private Object wrappedInstance;
    private Class<?> wrappedClass;

    public FCBeanWrapper(Object wrappedInstance){
        this.wrappedInstance = wrappedInstance;
    }

    public Object getWrappedInstance() {
        return this.wrappedInstance;
    }

    /**
     * 返回代理以后的Class
     * 可能会是$Proxy0
     * @return
     */
    public Class<?> getWrappedCalss() {
        return this.wrappedInstance.getClass();
    }
}
